package com.example.pwj.ffstudy.comm.anim;

import android.animation.Animator;
import android.animation.ObjectAnimator;
import android.view.View;

/**
 * Created by pwj on 2017/8/16.
 */

public class ScaleInAnimation extends BaseAnimation {
    private static final float START = 0.5f;
    private float mStart;

    public ScaleInAnimation(float mStart) {
        this.mStart = mStart;
    }

    public ScaleInAnimation() {
        this(START);
    }

    @Override
    public Animator[] getAnimators(View view) {
        ObjectAnimator scaleX = ObjectAnimator.ofFloat(view, "scaleX", START, 1);
        ObjectAnimator scaleY = ObjectAnimator.ofFloat(view, "scaleY", START, 1);
        return new Animator[]{scaleX,scaleY};
    }
}
